package com.dyw.ba01;

/**
 * @auther Devil
 * @create 2022-01-06-20:04
 */

/**
 * 定义目标是实现类
 */
public class SomeServiceImpl implements SomeService {
    @Override
    public void doSome(String name, int id) {
        //给doSome方法增加一个功能 在doSome方法执行之前,输出方法的执行时间
        System.out.println("----------目标方法doSome-------");
    }

    @Override
    public String doOther() {
        System.out.println("----------目标方法doSome-------");
        return "abcd";
    }

    @Override
    public Student doOther2() {
        Student student = new Student();
        student.setAge(20);
        student.setName("丁杨维");
        return student;
    }

    @Override
    public Student doFirst(String name, int age) {
        Student student = new Student(name, age);
        System.out.println("----业务方法本身----");
        return student;
    }


}
